package com.kot.backend.consumer.utils;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class Game {
    Tank playerA,playerB = null;
    Integer rows = 21;
    Integer cols = 20;
    Integer house_col = (Integer) (cols/2)-2;//老家起始列（行数不用设置，是固定的）

    public void createPlayers(Integer aId,Integer bId){//创建两名玩家
        this.playerA = new Tank(aId,rows-2,house_col-1,"playerA");
        this.playerB = new Tank(aId,rows-2,house_col-1,"playerB");
    }

}
